#parameters are strings; return "true" or "false" (see Sample Tests)
#!/bin/bash
comp() {
    # your code
a=($1)
b=($2)

if [[ ! $a || ! $b || -z "$a"|| -z "$b"  || $# -ne 2 ||  ${#a[@]} -ne ${#b[@]} ]];then
echo "false"
return
fi

for (( i=0;i<${#a[@]};i++ ))
do
    var=$((${a[$i]} * ${a[$i]}))
    echo "${b[@]}" | grep -wq "$var"
    if [ $? -ne 0 ];then
      echo false
      return
    fi
done
echo true

}

comp "$1" "$2"
